Batch Transfers 相关的 Event 类型

该类型的 Event 对象会在 batch_transfer 对象批量付款成功后触发,以 Webhooks 形式发送至客户配置的 Webhooks URL。详情请参考 Events 事件

事件类型描述
batch_transfer.succeeded批量企业付款成功时触发。
batch_transfer.failed批量企业付款全部失败时触发。

示例对象

{
    "id": "evt_ca16CoQsiP2ja1JKs5gx3j4q",
    "object": "event",
    "created": 1475924802,
    "livemode": false,
    "data": {
        "object": {
            "id": "181610101014367590",
            "object": "batch_transfer",
            "app": "app_ribgW1n2SOqcPxn1",
            "amount": 8000,
            "batch_no": "2016101010380007",
            "channel": "alipay",
            "currency": "cny",
            "created": 1476067087,
            "description": "付款说明",
            "extra": {},
            "failure_msg": null,
            "fee": 200,
            "livemode": true,
            "metadata": {},
            "recipients": [
                {
                    "account": "account01@alipay.com",
                    "amount": 5000,
                    "name": "张三",
                    "transfer": "tr_jHWfvDnTKG0SiPmbfPbHW1eH",
                    "status": "paid"
                },
                {
                    "account": "account02@alipay.com",
                    "amount": 3000,
                    "name": "李四",
                    "transfer": "tr_8u1yPK1eHWv9D08OePzDe1CK",
                    "status": "paid"
                }
            ],
            "status": "succeeded",
            "time_succeeded": 1476067147,
            "type": "b2c"
        }
    },
    "pending_webhooks": 0,
    "request": "iar_1KeD0GHi58yLfDyHK4HCOyDS",
    "type": "batch_transfer.succeeded"
}